<%-- 
    Document   : jornada
    Created on : 3/11/2013, 05:22:28 PM
    Author     : TOSHIBA
--%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.ArrayList"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.*"%>

<jsp:useBean id="a" class="VO.jornada"/>
<jsp:useBean id="Admin" class="DAO.Consulta"/>
<!DOCTYPE html>
<html>
    <head>
       <jsp:include page="includes/head.jsp"></jsp:include>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <title>Crear Jornada</title>
        <jsp:include page="includes/nav_bar.jsp"></jsp:include>
        </head>
            <% 
            String m=request.getParameter("msg");
            if(m!=null){
            %>
            <div class="container container-fluid"    >
                <div class="alert span8 alert-<%=m%>">
                    <a class="close" data-dismiss="alert">×</a>
                    <% if(m.equals("success")){ %>
                        <strong>Correcto!</strong> La jornada ha sido Creada correctamente.
                    <% }else{ %>
                        <strong>Error!</strong> ya existe una Jornada con ese codigo .
                    <% }%>


                    </div>
                <% } %>
            </div>
        
    
         
            <form class="form-horizontal" name="crear_Jornada" method="POST" action="guardar.jsp">
    <fieldset>

    <!-- Form Name -->
    <legend> <a href="ver_jornada.jsp"><img src="img/volver.png" class="span1" /></a>  Crear Jornada </legend>

    <!-- Text input-->
    <div class="control-group">
     <label class="control-label" for="id_jornada">Codigo Jornada:</label>
      <div class="controls">
        <input id="id_jornada" name="id_jornada" type="text" placeholder="Codigo Jornada" class="input-large" required="">   
      </div>
    </div>

     <div class="control-group">
    <label class="control-label" for="nombre_jornada">Nombre Jornada:</label>
       <div class="controls">
        <input id="nombre_jornada" name="nombre_jornada" type="text" placeholder="Nombre Jornada:" class="input-large" > 
       </div>
     </div>
    <div class="controls">
        <button id="guardar" name="guardar" class="btn btn-primary">Crear</button>
      </div>
</fieldset>
</form>
        
          
  
       
       
       
    </body>
    
    
</html>
